package cn.edu.scau.cmi.zenghanxiong.client;

import cn.edu.scau.cmi.zenghanxiong.simpleFactoryMethod.MeatFactory;
import cn.edu.scau.cmi.zenghanxiong.simpleFactoryMethod.domain.Meat;
import javafx.application.*;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class SimpleFactoryMethodClient extends Application{
	public void start(Stage Stage) {
        try {
            
            Parent root = FXMLLoader.load(getClass().getResource("../simpleFactoryMethod/MeatFactory.fxml"));
            Stage.setTitle("SimpleFactoryMethod");
            Stage.setScene(new Scene(root));
            Stage.show();

        } catch(Exception e) {
            e.printStackTrace();
        }
    }
	public static void main(String[] args) {
		launch(args);
		/*
		Meat beaf = MeatFactory.getMeat("beef");
		beaf.cook();
		
		Meat pork = MeatFactory.getMeat("pork");
		pork.cook();
		
		Meat chicken = MeatFactory.getMeat("chicken");
		chicken.cook();
		*/
	}
	

	
}
